/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.proyecto;

/**
 *
 * @author mario
 */
public class frmConfirmacion extends javax.swing.JInternalFrame {

    /**
     * Creates new form frmConfirmacion
     */
    frmMantenimiento_Catedratico frmCate;

    public void CerrarCatedratico() {
        
        frmPpal frm = new frmPpal();
        frm.frmManCate.dispose();
    }

    public frmConfirmacion() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jbtnSi = new javax.swing.JButton();
        jbtnNo = new javax.swing.JButton();

        jLabel1.setText("¿Desea agregar otro registro?");

        jbtnSi.setText("Si");
        jbtnSi.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jbtnSiMouseClicked(evt);
            }
        });

        jbtnNo.setText("No");
        jbtnNo.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jbtnNoMouseClicked(evt);
            }
        });
        jbtnNo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnNoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(90, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addGap(79, 79, 79))
            .addGroup(layout.createSequentialGroup()
                .addGap(102, 102, 102)
                .addComponent(jbtnSi, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbtnNo, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jbtnSi)
                    .addComponent(jbtnNo))
                .addContainerGap(30, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jbtnSiMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbtnSiMouseClicked
        // TODO add your handling code here:
        frmCate = new frmMantenimiento_Catedratico();

        if (frmCate != null) {

            this.dispose();
        }
    }//GEN-LAST:event_jbtnSiMouseClicked

    private void jbtnNoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbtnNoMouseClicked

       
    }//GEN-LAST:event_jbtnNoMouseClicked

    private void jbtnNoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnNoActionPerformed
         frmCate = new frmMantenimiento_Catedratico();

        if (frmCate != null) {
            CerrarCatedratico();
            this.dispose();
        }
    }//GEN-LAST:event_jbtnNoActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JButton jbtnNo;
    private javax.swing.JButton jbtnSi;
    // End of variables declaration//GEN-END:variables
}
